﻿Ext.define('TAB.view.user.SimpleUserGrid', {
    extend: 'Twi.QuickPagingGrid',
    alias: 'widget.SimpleUserGrid',
    requires: [
        'BIM.store.User',
        'Twi.QuickPagingGrid'
    ],
    viewConfig: {
        stripeRows: true
    },
    itemId: 'simpleUserGrid',
    columns: [{
        xtype: 'rownumberer'
    }, {
        header: '姓名',
        dataIndex: 'FREALNAME',
        flex: 1
    }, {
        header: '用户名',
        dataIndex: 'FNAME',
        flex: 1
    }, {
        header: '性别',
        dataIndex: 'FSEX',
        width: 60
    }, {
        header: '部门',
        dataIndex: 'DEPARTMENTNAME',
        flex: 1
    }, {
        header: '职务',
        dataIndex: 'FDUTYNAME',
        flex: 1
    }],
    initComponent: function () {
        var me = this;
        var store = Ext.create("BIM.store.User");
        me.store = store;
        me.callParent(arguments);
    }
});